home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / Includes / system / tracking.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-14  |  1.1 KB  |  38 lines

  1. #ifndef SYSTEM_TRACKING_H
  2. #define SYSTEM_TRACKING_H 1
  3.  
  4. /*
  5. **  $VER: tracking.h (November 1997)
  6. **
  7. **  (C) Copyright 1996-1997 DreamWorld Productions.
  8. **      All Rights Reserved
  9. */
  10.  
  11. #ifndef DPKERNEL_H
  12. #include <dpkernel/dpkernel.h>
  13. #endif
  14.  
  15. /*****************************************************************************
  16. ** Resource numbers.
  17. */
  18.  
  19. #define RES_EMPTY    0
  20. #define RES_MEMORY   1   /* Memory allocation, lowest level resource type */
  21. #define RES_COMPLEX  2   /* Complex allocation - (hardware and software) */
  22. #define RES_CUSTOM   3   /* Software allocation of a customised type */
  23. #define RES_HARDWARE 4   /* Hardware allocation */
  24.  
  25. /*****************************************************************************
  26. ** This structure is used only within the kernel.
  27. */
  28.  
  29. struct Track {
  30.   struct Track *Next;  /* Next in the chain */
  31.   WORD   ID;           /* ID number of this resource (see above) */
  32.   LONG   Key;          /* Unique key for the resource */
  33.   APTR   Address;      /* Address of object to free */
  34.   __asm  void (*Routine)(register __d0 APTR Address, register __d1 LONG Key);
  35. };
  36.  
  37. #endif /* SYSTEM_TRACKING_H */
  38.